import request from '@/utils/request'
import hiSetting from '@/hiSetting'
import { dataHelper } from 'hi-ui'


export default {
    //初始化库存
    initStoreSave(data) {
        debugger;
        return request({
            url: hiSetting.platform + "/interface/initstore.gm",
            method: 'post',
            data: data,
            transformRequest: [
                function (data) {
                    let ret = ''
                    for (let it in data) {
                        ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
                    }
                    ret = ret.substring(0, ret.lastIndexOf('&'));
                    return ret
                }
            ],
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },




}
